// 默认pc端
body {
    padding: 0;
    background: url(../images/box-style-bg.png);
}

// 顶部固定导航
.fixed_nav {
    width: 100%;
    box-sizing: border-box;
    height: 55px;
    line-height: 55px;
    padding: 0 15px;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #fff;
    z-index: 100;
    display: none;
    font-size: 20px;
}

// 顶部导航
.head_nav {
    border-bottom: 1px solid #ccc;
    background-color: #fff;

    .w {
        .public_box {
            text-align: center;
            width: 24%;
            font-size: 12px;
            padding: 20px 0;
            border-left: 1px solid #ccc;

            &:first-child {
                border-left: none;
            }

            &:last-child {
                padding: 10px 0;

                span {
                    display: block;
                    float: left;
                    width: 25%;
                    padding: 10px 0;
                    background-color: red;
                    border-radius: 6px;
                    margin-left: 25%;

                    a {
                        color: #fff;
                    }
                }

                .login {
                    width: 25%;
                    margin-top: 10px;
                }
            }
        }
    }
}

// 主题导航区域
.main_nav {
    background-color: #fff;
    .w {
        padding: 15px 60px;
        box-sizing: border-box;
        img {
            float: left;
            width: 10%;
            margin: 0 40px;
        }
        ul {
            li {
                float: left;
                width: 10%;
                margin-top: 5px;
                &:last-child {
                    float: right;
                    margin-right: 15px;
                }
            }
        }
    }
}

// 广告区域
.banner {
    img {
        width: 100%;
    }
}

// 列表区域
.list_box {
    border-bottom: 1px solid #ccc;
    background-color: #fff;

    .w {
        padding: 20px 60px;
        box-sizing: border-box;
        // 弹性布局:哪些元素要一行显示,就给父容器设置弹性盒子
        display: flex;
        // 在主轴对其
        justify-content: space-between;
    }

    dt {
        font-size: 20px;
    }

    dd {
        font-size: 14px;
        margin-top: 10px;
    }
}

// 文字内容区域
.text_content {
    padding: 15px 0px;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    p:first-child{
        margin-bottom: 10px;
    }

    .w {
        padding-left: 60px;
        box-sizing: border-box;
    }

    span {
        color: blue;
        cursor: help;
    }

    a {
        color: orange;
    }
}

// 底部区域
.footer {
    .top_foot {
        border-bottom: 1px solid #ccc;
        padding-left: 60px;

        ul {
            height: 60px;
            line-height: 60px;

            li {
                float: left;
                margin-right: 40px;
                font-size: 20px;
                cursor: pointer;

                &:hover {
                    border-bottom: 1px solid red;
                }
            }
        }

    }

    .middle_foot {
        height: 50px;
        line-height: 50px;
        background-color: #fff;
        margin-top: 20px;
        border-radius: 5px;
        padding-left: 20px;
        position: relative;

        &::after {
            content: '';
            width: 0;
            height: 0;
            border-top: 10px solid transparent;
            border-bottom: 10px solid #fff;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            position: absolute;
            top: -19px;
            left: 60px;
        }
    }

    .bot_foot {
        padding: 15px 0;
        box-sizing: border-box;
        // 弹性布局
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        &::after {
            content: '';
            width: 32%;
            display: block;
        }

        .item {
            width: 32%;
            height: 150px;
            background-color: #e61e25;
            margin-bottom: 10px;
            border-radius: 5px;
            padding: 10px;
            box-sizing: border-box;

            .left_item {
                width: 69%;
                height: 100%;
                border-right: 1px dashed #fff;
                position: relative;
                padding-right: 10px;
                box-sizing: border-box;

                &::before {
                    content: '';
                    width: 15px;
                    height: 15px;
                    display: block;
                    background: url(../images/box-style-bg.png) no-repeat;
                    border-radius: 50%;
                    position: absolute;
                    right: -8px;
                    top: -18px;
                }

                &::after {
                    content: '';
                    width: 15px;
                    height: 15px;
                    display: block;
                    background: url(../images/box-style-bg.png) no-repeat;
                    border-radius: 50%;
                    position: absolute;
                    right: -8px;
                    bottom: -18px;
                }
                .title{
                    font-size: 16px;
                    color: #fff;
                    font-weight: bold;
                }
                p:nth-child(n+2){
                    &:nth-child(2n){
                        color:rgba(255, 255, 255, 0.5)
                    }
                    &:nth-child(2n+1){
                        color: #fff;
                        font-weight: bold;
                    }
                    margin-top: 18px;
                    font-size: 12px;
                    span:first-child{
                        display: block;
                        float: left;
                    }
                    span:last-child{
                        float: right;
                    }
                }

            }

            .right_item {
                width: 30%;
                height: 100%;
                text-align: center;
                padding: 40px 0;
                box-sizing: border-box;
                p:first-child{
                    font-size: 24px;
                    color: #fff;
                    font-weight: bold;
                    margin-bottom: 10px;
                }
                p:last-child{
                    color: #fff;
                }
            }
        }
    }
}






// ipad端
@media only screen and (min-width:768px) and (max-width:1024px) {
    .w {
        width: 100%;
        box-sizing: border-box;
    }

    body {
        padding: 0;
    }

    // 固定导航
    .fixed_nav {
        display: none;
    }

    // 顶部导航
    .head_nav {
        .w {
            .public_box {
                width: 33%;

                &:first-child {
                    display: none;
                }
            }
        }

    }

    // 主体导航
    .main_nav{
        .w{
            padding: 10px 0;
            img{
                width: 14%;
                margin: 0 10px;
            }
            ul{
                li{
                    width: 13%;
                    margin:10px 0;
                    text-align: center;
                    &:last-child{
                        display: none;
                    }
                    &:first-child{
                        margin-left: 20px;
                    }
                }
            }
        }
    }

    // 列表区域
    .list_box {
        .w {
            width: 100%;
            padding: 15px 30px;
            box-sizing: border-box;
        }

        dt {
            font-size: 24px;
        }

        dd {
            font-size: 12px;
        }
    }

    // 文字内容区域
    .text_content {
        .w {
            padding-left: 30px;
        }
    }

    // 底部区域
    .footer {
        .top_foot {
            padding-left: 30px;
        }

        .middle_foot {
            &::after {
                content: '';
                width: 0;
                height: 0;
                border-top: 10px solid transparent;
                border-bottom: 10px solid #fff;
                border-left: 10px solid transparent;
                border-right: 10px solid transparent;
                position: absolute;
                top: -19px;
                left: 30px;
            }
        }

        // 卡片
        .bot_foot {
            .item {
                width: 49%;
            }
        }
    }
}




// 移动端
@media only screen and (max-width:767px) {
    .w {
        width: 100%;
        box-sizing: border-box;
    }

    body {
        padding-top: 55px;
    }

    // 固定导航
    .fixed_nav {
        display: block;
    }

    // 顶部导航
    .head_nav {
        display: none;
    }

    // 主体导航
    .main_nav{
        display: none;
    }

    // 列表区域
    .list_box {
        display: none;
    }

    // 文字内容区域
    .text_content {
        padding: 10px 10px;
        .w{
            padding-left: 10px;
        }
        p{
            line-height: 25px;
        }
    }

    // 底部区域
    .footer {
        .top_foot {
            overflow: scroll;
            padding-left: 20px;

            ul {
                width: 768px;
            }
        }

        .middle_foot {
            &::after {
                content: '';
                width: 0;
                height: 0;
                border-top: 10px solid transparent;
                border-bottom: 10px solid #fff;
                border-left: 10px solid transparent;
                border-right: 10px solid transparent;
                position: absolute;
                top: -19px;
                left: 20px;
            }
        }

        .bot_foot {
            .item {
                width: 100%;
            }
        }
    }
}